package com.it.water;

import com.it.water.common.ImageSocketServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Springboot启动程序
 *
 * @author yjh
 * @version 1.0
 * @since 2024-03-23
 */
@Slf4j
@SpringBootApplication
@EnableTransactionManagement
public class WaterApplication {

    /**
     * 启动类
     *
     * @param args 启动参数
     */
    public static void main(String[] args) {
        SpringApplication.run(WaterApplication.class, args);
        ImageSocketServer imageSocketServer = new ImageSocketServer();
        imageSocketServer.startServer();
        log.info("项目启动成功");
    }
}
